﻿<%@ Page Language="C#" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true" CodeBehind="newviewpointinfo.aspx.cs" 
Inherits="map.member.lvyou.newviewpointinfo" Title="景点详细信息与图片" UICulture="auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">

 <link href="/outstyle.css" rel="stylesheet" type="text/css" />
    <link href="/css/CustomStyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="/Stylesheet1.css" rel="stylesheet" type="text/css" />
    <script src="/js/dropdowncontent.js" type="text/javascript"></script>
 <script src="/js/CBScript.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            Width="590px" DataKeyNames="RECID" 
                CellPadding="4" GridLines="Horizontal" 
               
                onselectedindexchanging="GridView1_SelectedIndexChanging" 
                BorderWidth="3px" BackColor="White" BorderColor="#336666" 
        BorderStyle="Double">
                <RowStyle BackColor="White" ForeColor="#333333" />
                <Columns>                    
                  <asp:BoundField DataField="RECID" HeaderText="RECID" Visible="False" />
                    <asp:BoundField DataField="lyviewpointid" HeaderText="景点名称" >
                      <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                      <asp:BoundField DataField="taobaolong" HeaderText="经度" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="taobaolat" HeaderText="纬度" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowSelectButton="True" />
                  <%--  <asp:CommandField ShowDeleteButton="True" />--%>
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#333333" />
                <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    当前区内没有区域数据,请在下方增加区域.
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
            </asp:GridView> 
            <div class="Section">
            <div class="title">景点介绍</div>
            <div class="context">
            <asp:Label ID="despLabel" runat="server"></asp:Label>
            </div>
            
            </div>
            <asp:Button ID="editDesp" runat="server" Text="编辑" class="areaInfoEditButton"
        onclick="editDesp_Click" />
            <div class="Section">
            <div class="title">景点配套</div>
            <div class="context">
            <asp:Label ID="transparentLabel" runat="server"></asp:Label>
            </div>
            
            </div>
             <asp:Button ID="editTransparent" class="areaInfoEditButton" runat="server" Text="编辑" 
        onclick="editTransparent_Click" />
        <div id="photoSection">
        <div id="photoesView">
             <asp:DataList ID="DataList1" runat="server" BackColor="White"
            BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
            DataKeyField="RECID"  GridLines="Both" RepeatColumns="5" 
                 onitemcommand="DataList1_ItemCommand">
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <ItemStyle BackColor="White" ForeColor="#333333" VerticalAlign="Middle" HorizontalAlign="Center" />
            <SelectedItemStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
            <ItemTemplate>                   
            <div class="imageBlock" style="text-align:center">       
                <asp:Image ID="Image2" runat="server" Height="96px"
                    ImageUrl='<%# Eval("cbimgpath") %>' Width="175px" />
                    </div>   
                      <br />
                    <span class="deescripton">说明:</span>
                <asp:Label ID="PictureIdLabel" CssClass="deescripton" runat="server" Text='<%# Eval("jcdesc") %>' />
              
                <br />                
<asp:LinkButton style="text-align:center"  runat="server" ID="DeleteButton" CommandName="delete" CommandArgument ='<%#Eval("RECID").ToString() %>' Text="删除"/>
                 <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="DeleteButton" ConfirmText="确定要删除吗？">

                 </cc1:ConfirmButtonExtender>
              
                
            </ItemTemplate>
                
        </asp:DataList>
        
        </div>
        <div id="uploadphoto">
        <asp:FileUpload ID="FileUpload1" runat="server" /><br /><asp:Label ID="labe22" runat="server" Text="图片说明:"></asp:Label><asp:TextBox ID="imageDespcripton" runat="server"></asp:TextBox>
        <br/>
        <asp:Button ID="BTNUp" runat="server" Text="上传" onclick="BTNUp_Click" 
            Width="56px" />
        </div>
        </div>
            <asp:Label ID="textSource" Visible="false" runat="server"></asp:Label>
             <asp:Label ID="Label1" Visible="false" runat="server"></asp:Label>
            <div id="editor">
             <FCKeditorV2:FCKeditor ID="Fck_Content" runat="server" Height="300px" Width="100%">
        </FCKeditorV2:FCKeditor>
        <asp:Button ID="SubmitEdit" runat="server" text="提交修改" onclick="SubmitEdit_Click"/>
            </div>
</asp:Content>
